//
//  UIimage+Extension.swift
//  imitationMicroblog
//
//  Created by 季晓侠 on 16/2/22.
//  Copyright © 2016年 季晓侠. All rights reserved.
//

import UIKit

extension UIImage{
    class func xxj_singleDotImage(color:UIColor) -> UIImage{
      
        UIGraphicsBeginImageContextWithOptions(CGSize(width: 1, height: 1), false, UIScreen.mainScreen().scale)
        
        color.setFill()
        UIRectFill(CGRect(x: 0, y: 0, width: 1, height: 1))
        let result = UIGraphicsGetImageFromCurrentImageContext()
        
        UIGraphicsEndImageContext()
        
        return result
    
    
    
    }


}